import request from '@/utils/request'
import storage from '@/utils/storage'
import constant from '@/utils/constant'

//  基础数据
export function queryQheckmain04List(code,factory) {
	var name =storage.get(constant.name)
  const data = {
    code,factory,name
  }
  return request({
     'url': '/selectGpcdetailWithFactory',
    headers: {
      isToken: false
    },
    'method': 'get',
    'data': data//,
	// 'baseUrl': 'http://192.168.63.65/qms/commonData/selectGpcdetailWithFactory'
  })
}
  //  不良性质
  export function queryQheckmain13List(factory) {
    const data = {
      factory
    }
    return request({
       'url': '/selectAdmainWithFactory',
      headers: {
        isToken: false
      },
      'method': 'get',
      'data': data
    })
	}
  //  不良类型
  export function queryQheckmain15List(fid) {
    const data = {
      fid
    }
    return request({
       'url': '/selectAddetailWithFactory',
      headers: {
        isToken: false
      },
      'method': 'get',
      'data': data
    })
	
	}
	//  查询检核明细
	export function queryDetailCheck(param) {
	  return request({
	     'url': '/queryDetailCheck',
	    headers: {
	      isToken: false
	    },
	    'method': 'post',
	    'data': param
	  })
	  }
	//  查询检核明细
	export function submitDetailCheck(param) {
	  return request({
	     'url': '/submitDetailCheck',
	    headers: {
	      isToken: false
	    },
	    'method': 'post',
	    'data': param
	  })
	  }
	  export function getWxCofig(url) {
		  const data = {
		    url
		  }
	    return request({
	       'url': '/initJSSDKConfigInfo',
	      headers: {
	        isToken: false
	      },
	      'method': 'get',
	      'data': data
	    })
}
